﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Drawing.Drawing2D;
using Cosby.Models;

namespace Cosby.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "";

            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult Code()
        {
            return View();
        }

        public ActionResult Play(string orientation, string widthcolors)
        {
            if (string.IsNullOrWhiteSpace(orientation) || string.IsNullOrWhiteSpace(widthcolors))
            {
                orientation = "V";
                widthcolors = "20/301a30";
            }

            var ss = new StripeSet(orientation, widthcolors);

            return View(ss);
        }
    }
}
